import request from "@/utils/request";

// 分页获取单位下所有员工职位信息 错误码 302001
export function list(params) {
    return request({
        url: "/energy/monthTranscription/list",
        method: "get",
        params,
    });
}

// 删除 错误码302002
export function deleteMonthTranscription(id) {
    return request({
        url: `/energy/monthTranscription/${id}`,
        method: "delete",
    });
}

// 新增 错误码302003
export function add(data) {
    return request({
        url: `/energy/monthTranscription`,
        method: "post",
        data
    });
}

// 修改 错误码302004
export function edit(data) {
    return request({
        url: `/energy/monthTranscription`,
        method: "put",
        data
    });
}
// 详情 错误码302005
export function detail(id) {
    return request({
        url: `/energy/monthTranscription/${id}`,
        method: "get",
    });
}
